﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="ZF.WS.Admin.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="../css/common.css" rel="stylesheet" type="text/css" />
    <link href="../css/default.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    
<style>
.login{ width:240px;}
.login dd{ text-align:left; line-height:30px; height:30px;   }

</style>
<div  style="text-align:center; margin-top:200px;"  >

    <div class="login board">
        <dl>
            <dt>&nbsp;&nbsp;后台管理登录</dt>
            <dd>&nbsp;用户名：&nbsp;&nbsp;<zf:TextBox runat="server" ID="tbAccount" class="stxt"></zf:TextBox>
            </dd>
            <dd>
                &nbsp;密　码：&nbsp;&nbsp;<zf:TextBox runat="server" ID="tbPwd" TextMode="Password"   class="stxt"></zf:TextBox><%--&nbsp;<a href="#" style="color:#f00">忘记密码</a>--%>
            </dd>
            <dd>
                &nbsp;验证码：&nbsp;&nbsp;<zf:TextBox runat="server" ID="tbVCode" Text=""  class="stxt"></zf:TextBox>
                <img src="/ValidatePage.aspx" style="cursor: pointer" class='vcodeimg' onclick="refreshValidateCodeImage(this);" />
            </dd>
            <dd>
                &nbsp;记住我：&nbsp;&nbsp;<zf:CheckBox runat="server" Text="记住我" ID="cbRemember" />
            </dd>
            <dd  style="text-align:center;">
                 <zf:Button runat="server" ID="btLogin" OnClick="_Login"  Text="登 录"/>
               <%-- <input type="button" class="reg"  value="注册新用户" />--%>
                 
            </dd>
        </dl>
    </div>
<script>
    $(function() {
        $("input.reg").click(function() {
        window.location = "/Register.aspx";
            
        });
    });
</script>
<script language='javascript' type="text/javascript">
    function refreshValidateCodeImage(ValidateCodeImageControl) {

        var url = ValidateCodeImageControl.src;
        if (url.indexOf("?code=") > -1) {
            url = url.split("?")[0];
        }
        ValidateCodeImageControl.src = url + '?code=' + randomNum(10);
    }
    function randomNum(n) {
        var rnd = '';
        for (var i = 0; i < n; i++)
            rnd += Math.floor(Math.random() * 10);
        return rnd;

    }
    $(function() {
        $(".vcodeimg")[0].click();

    });
    </script>
</div>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    </form>
</body>
</html>
